home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinXP Prefetch Options.xpl < prev    next >
Text File  |  2004-01-14  |  2KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH 1"="System\File System\Windows Prefetching"
  5. "NAME"="Prefetch Options"
  6. "VERSION"="1.02"
  7. "OSVERSION"="0000011"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Prefetch Applications that are launched"
  10. "TEXT 2"="Prefetch Applications that are executed during Start-up"
  11. "DESCRIPTION 1"="Windows XP creates a %systemroot%\prefetch folder to select files it loads at system startup."
  12. "DESCRIPTION 2"="It fetches frequently run programs and executable files to speed up their launch times.  However, this may slow down system boot up time.  It may make your programs run somewhat faster, however.  You can adjust it here for optimal performance."
  13. "DESCRIPTION 3"="Note: By default, both options are activated."
  14. "AUTHOR"="Xteq Systems (CptSiskoX)"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="from http://www.ntfaq.com/Articles/Index.cfm?ArticleID=24278"
  18. "COMMENT 2"="Thanks to j2k for the bug-notice!"
  19.  
  20.  
  21. sP="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\EnablePrefetcher"
  22.  
  23. Sub Plugin_Initialize 
  24.  i=RegReadValue(sP)
  25.  if i>1 then
  26.     Call SetUIElement(2,true)
  27.     i=i-2
  28.  end if
  29.  
  30.  if i>0 then
  31.     Call SetUIElement(1,true)
  32.  end if
  33.  
  34.  
  35.  
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  i=0
  40.  if GetUIElement(1)=true then i=i+1
  41.  if GetUIElement(2)=true then i=i+2
  42.  
  43.  Call RegWriteValue(sP,i,2)
  44.  
  45.  Call Restart()
  46. End Sub
  47.  
  48. Sub Plugin_Terminate 
  49. End Sub
  50.